﻿using System.Data.Entity.Infrastructure;
using MadeEasy.RealEstate.ModelMapping;

namespace MadeEasy.RealEstate.Context
{
    using System.Data.Entity;
    using Model;

    public class AuthorizationContext : DbContext
    {
        public DbSet<User> Users { get; set; }

        public AuthorizationContext() : base()
        {
            //Database.DefaultConnectionFactory = new SqlCeConnectionFactory("System.Data.SqlServerCe.4.0", "", @"Data Source=|DataDirectory|\RealEstate.sdf");
        }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
            //modelBuilder.Configurations.Add(new UserMapping());
        }
    }
}